import Layout from '@/views/layout/Layout'

export default {
  path: '/masterdata',
  component: Layout,
  alwaysShow: true,
  meta: { title: '生产主数据', icon: 'fa-database', noCache: true },
  children: [
    {
      path: 'company',
      component: () => import('@/views/masterdata/basic/company'),
      name: 'company',
      meta: { title: '公司维护' },
    },
    {
      path: 'plant',
      component: () => import('@/views/masterdata/basic/plant'),
      name: 'plant',
      meta: { title: '工厂维护' },
    },
    {
      path: 'section',
      component: () => import('@/views/masterdata/basic/section'),
      name: 'section',
      meta: { title: '工段维护', noCache: true, roles: [] },
    },
    {
      path: 'line',
      component: () => import('@/views/masterdata/basic/line'),
      name: 'line',
      meta: { title: '线体维护', noCache: true, roles: [] },
    },
    {
      path: 'groupType',
      component: () => import('@/views/masterdata/basic/groupType'),
      name: 'groupType',
      meta: { title: '工序类型维护', noCache: true, roles: [] },
    },
    {
      path: 'group',
      component: () => import('@/views/masterdata/basic/group'),
      name: 'group',
      meta: { title: '工序维护', noCache: true, roles: [] },
    },
    {
      path: 'shift',
      component: () => import('@/views/masterdata/basic/shift'),
      name: 'shift',
      meta: { title: '班制维护', noCache: true, roles: [] },
    },
    {
      path: 'lineowner',
      component: () => import('@/views/masterdata/basic/lineowner'),
      name: 'lineowner',
      meta: { title: '人员维护', noCache: true, roles: [] },
    },
    {
      path: 'station',
      component: () => import('@/views/masterdata/basic/station'),
      name: 'station',
      meta: {
        title: '工位管理',
        noCache: true,
      },
    },
    {
      path: 'custom',
      component: () => import('@/views/masterdata/basic/custom'),
      name: 'custom',
      meta: { title: '客户', noCache: true, roles: [] },
    },
    {
      path: 'model',
      component: () => import('@/views/masterdata/basic/model'),
      name: 'model',
      meta: { title: '机种', noCache: true, roles: [] },
    },
    {
      path: 'material',
      component: () => import('@/views/masterdata/basic/material'),
      name: 'material',
      meta: { title: '物料', noCache: true, roles: [] },
    },
    {
      path: 'materialInfo/:id',
      component: () => import('@/views/masterdata/basic/materialInfo'),
      name: 'materialInfo',
      meta: { title: '物料/产品详情', noCache: true },
    },
    {
      path: 'partmap',
      component: () => import('@/views/masterdata/basic/partmap'),
      name: 'partmap',
      meta: { title: '客户料号', noCache: true, roles: [] },
    },
    {
      path: 'warehouse',
      component: () => import('@/views/masterdata/basic/warehouse'),
      name: 'warehouse',
      meta: { title: '仓库维护', noCache: true, roles: [] },
    },
    {
      path: 'stock',
      component: () => import('@/views/masterdata/basic/stock'),
      name: 'stock',
      meta: { title: '库位维护', noCache: true, roles: [] },
    },
    {
      path: 'vendor',
      component: () => import('@/views/masterdata/basic/vendor'),
      name: 'vendor',
      meta: { title: '供应商管理', noCache: true, roles: [] },
    },
    {
      path: 'mapackage',
      component: () => import('@/views/masterdata/basic/mapackage'),
      name: 'mapackage',
      meta: { title: '供应商来料规则', noCache: true, roles: [] },
    },
    {
      path: 'matprefix',
      component: () => import('@/views/masterdata/basic/matprefix'),
      name: 'matprefix',
      meta: { title: '料头规则', noCache: true, roles: [] },
    },
    {
      path: 'grouppickup',
      component: () => import('@/views/masterdata/basic/grouppickup'),
      name: 'grouppickup',
      meta: { title: '站别捡料对应', noCache: true, roles: [] },
    },
    {
      path: 'factor',
      component: () => import('@/views/masterdata/barcode/factor'),
      name: 'factor',
      meta: { title: '条码要素维护', noCache: true, roles: [] },
    },
    {
      path: 'barcode',
      component: () => import('@/views/masterdata/barcode/barcode'),
      name: 'barcode',
      meta: { title: '条码规则管理', noCache: true, roles: [] },
    },
    {
      path: 'package',
      component: () => import('@/views/masterdata/barcode/package'),
      name: 'package',
      meta: { title: '包装量', noCache: true, roles: [] },
    },
    {
      path: 'snSplitRule',
      component: () => import('@/views/masterdata/barcode/snSplitRule'),
      name: 'snSplitRule',
      meta: { title: '外部条码解析规则', noCache: true, roles: [] },
    },
    {
      path: 'maBarcode',
      component: () => import('@/views/masterdata/barcode/maBarcode'),
      name: 'maBarcode',
      meta: { title: '物料条码规则', noCache: true, roles: [] },
    },
    {
      path: 'maLabel',
      component: () => import('@/views/masterdata/barcode/maLabel'),
      name: 'maLabel',
      meta: { title: '标签打印设定', noCache: true, roles: [] },
    },
    {
      path: 'labelDesign',
      component: () => import('@/views/masterdata/barcode/labelDesign'),
      name: 'labelDesign',
      meta: { title: '标签档案管理', noCache: true, roles: [] },
    },
    {
      path: 'labelDesignInfo',
      component: () => import('@/views/masterdata/barcode/labelDesignInfo'),
      name: 'labelDesignInfo',
      meta: { title: '标签档案管理信息', noCache: false, roles: [] },
    },
    {
      path: 'barcodeInfo',
      component: () => import('@/views/masterdata/barcode/barcodeInfo'),
      name: 'barcodeInfo',
      meta: { title: '条码规则信息', noCache: false, roles: [] },
    },
  ],
}
